{include file="public/header" /}

<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3>{$Think.lang.sc_inviter_set}</h3>
            </div>
            {include file="public/admin_items" /}
        </div>
    </div>
    <div class="fixed-empty"></div>
    <table class="search-form sc-default-table">
        <a class="btn-back" href="javascript:history.go(-1)">返回</a>
        <tbody>
            <tr>
                <td width="200">{$Think.lang.sc_member}{$Think.lang.sc_colon}{$inviter_info.member_name}</td>
                <td width="200">{$Think.lang.inviter_parent_name}{$Think.lang.sc_colon}{$inviter_info.inviter_parent_name}</td>
                <td width="200">{$Think.lang.refund_buyer_add_time}{$Think.lang.sc_colon}{$inviter_info.inviter_applytime|date='Y-m-d',###}</td>
                <td width="200">{$Think.lang.inviter_goods_quantity}{$Think.lang.sc_colon}{$inviter_info.inviter_goods_quantity}</td>
                <td>{$Think.lang.inviter_goods_amount}{$Think.lang.sc_colon}{$inviter_info.inviter_goods_amount}</td>
            </tr>
            <tr>
                <td width="200">真实姓名{$Think.lang.sc_colon}{$inviter_info.member_truename}</td>
                <td width="200">会员性别{$Think.lang.sc_colon}{$inviter_info.member_sex}</td>
                <td width="200">会员生日{$Think.lang.sc_colon}{$inviter_info.inviter_applytime|date='Y-m-d',###}</td>
                <td width="200">会员邮箱{$Think.lang.sc_colon}{$inviter_info.member_email}</td>
            </tr>
            <tr>
                <td width="200">用户类型{$Think.lang.sc_colon}{$inviter_info.member_type}</td>
                <td width="200">会员积分{$Think.lang.sc_colon}{$inviter_info.member_points}</td>

                <td width="200">所在地址{$Think.lang.sc_colon}{$inviter_info.member_areainfo}</td>
                <td width="200">地址详情{$Think.lang.sc_colon}{$inviter_info.member_address}</td>

                <td>邀请码{$Think.lang.sc_colon}{$inviter_info.inviter_id}</td>
            </tr>
            <tr>
                <td width="200">收件地址{$Think.lang.sc_colon} <a href="{:url('address/index',['member_id' => $inviter_info.member_id])}">点击查看</a></td>
                <td width="200">历史佣金总额{$Think.lang.sc_colon}<a href="{:url('Shop/pointsLog',['member_id' => $inviter_info.member_id])}">{$inviter_info.inviter_amount_total}</a></td>
            </tr>
            <tr>
                <td>余额{$Think.lang.sc_colon}{$inviter_info.available_predeposit} <a href="{:url('predeposit/pdlog_list',['mname' => $inviter_info['member_name']])}" class="">余额明细</a></td>
                <td width="200">冻结金额{$Think.lang.sc_colon}{$inviter_info.freeze_predeposit} <a href="{:url('predeposit/pdcash_list',['mname' => $inviter_info['member_name']])}" class="">提现明细</a></td>
                <td width="200">分享名称{$Think.lang.sc_colon}{$inviter_info.inviter_name}</td>
            </tr>
        </tbody>
    </table>
<div class="fixed-bar">
        <div class="item-title">
            <ul class="tab-base sc-row" id="member_level">
        <li><a href="javascript:getMemberList(1)" class="current"><span>邀请历史</span></a></li>
        <li><a href="javascript:getMemberList(2)"><span>积分记录</span></a></li>
        <li><a href="javascript:getMemberList(3)"><span>佣金记录</span></a></li>
    </ul>
        </div>
    </div>
    <div id="member_list_wrap"></div>
</div>
<script>
    $(function(){
        getMemberList(1)
    })
    function getMemberList(type){
        $('#member_level li a').removeClass('current');
        $('#member_level li:eq('+(type-1)+') a').addClass('current');

        if(type == 1) {
            $('#member_list_wrap').load(ADMINSITEURL+'/Shop/memberlist?member_id={$Request.param.member_id}');
        } else if(type == 3){
            $('#member_list_wrap').load(ADMINSITEURL+'/Shop/commission_log?member_id={$Request.param.member_id}');
        }else{
            $('#member_list_wrap').load(ADMINSITEURL+'/Shop/memberPointsLog?member_id={$Request.param.member_id}');
        }
    }
</script>
